package com.zry.pda.utils

class AdapterUtils {
    fun getCodeNumber(codeStr: String, mixCode: String, maxCode: String): Int? {
        var codeNumber: Int? = null
        codeNumber = if (codeStr != "" || codeStr != null) {
            StringListUtil().getList(codeStr).size
        } else {
            (StringListUtil().getStringIntercept(maxCode, 8).toInt() - StringListUtil().getStringIntercept(mixCode, 8).toInt()) + 1
        }
        return codeNumber
    }
}